/**
 * Copyright (C) 2008 ChangSha WangWin Science & Technology CO,.LTD. All rights reserved.
 * WangWin PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/**
 * Copyright (C) 2002-2008 WUZEWEN. All rights reserved.
 * WUZEWEN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * This software is the confidential and proprietary information of
 * WuZeven, Personal. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with WuZeven.
 */

package com.kingcore.pda.database.dao.impl;

import java.sql.SQLException;
import java.util.HashMap;

import com.kingcore.pda.base.dao.impl.PdaDaoJdbcPlainImpl;
import com.kingcore.pda.database.dao.CreateTableFileDao;

/**
 * <p>java类文件的说明...</p>
 * @author Zeven on 2008-12-4
 * @version	1.0
 * @see		Object#equals(java.lang.Object)
 * @see		Object#hashCode()
 * @see		HashMap
 * @since	JDK5
 */

public class CreateTableFileDaoImpl extends PdaDaoJdbcPlainImpl 
		implements CreateTableFileDao {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * <p>java方法的说明...</p>
	 * @author Zeven on 2008-12-4
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	/**
	 * <p>传递poolName是因为业务的特殊性，普通情况下是知道业务要使用哪个数据源的，
	 *     但是pda系统预先不知道，故需要传递过来。</p>
	 *     
	 */
	public void getTableInforByName(String poolName, String tableCondition)
			throws SQLException {

		// TODO Auto-generated method stub
//			boolean isConnCreated = false;
//			Statement stmt = null;
//			Connection l_conn = null;
//			ResultSet rs = null;
//			try{
//				if( this.conn==null || this.conn.isClosed() ) {
//					this.conn = this.getConnection();
//					isConnCreated = true;
//					log.debug("---------get new conn and assign to this.conn");
//				}
//				l_conn = this.conn;
//				 
//				String sql = tableCondition;
//				//stmt = l_conn.createStatement();
//				//rs = stmt.executeQuery(sql);
//				
//				log.debug("---------end of all main process.");
//				
//			}catch(SQLException sqle){			
//				if(isConnCreated && l_conn!=null){		// 回滚
//					l_conn.rollback();
//				}
//	            log.error("debug", sqle);
//				throw sqle;
//			
//			}finally{
//				if(isConnCreated){
//					DbUtils.closeQuietly(l_conn, stmt, rs);	// 关闭
//				}else{
//					DbUtils.closeQuietly( null, stmt, rs );
//				}
//			}
		
	}

	/**
	 * <p>传递poolName是因为业务的特殊性，普通情况下是知道业务要使用哪个数据源的，
	 *     但是pda系统预先不知道，故需要传递过来。</p>
	 *     
	 */
	public void getTableInforByCondition(String poolName, String dbName,
			String is_tblname) throws SQLException {
		// TODO Auto-generated method stub
		
	}

}
